Repository navigation
install.sh: upgrade a source install instead of failing on bin/ttp - #211
Merged
Merged
Conversation
install_locked.sh installs the wheel with `installer`, which never overwrites, so re-running scripts/install.sh over an existing /opt/ttp failed with FileExistsError: /opt/ttp/venv/bin/ttp (seen upgrading 0.5.1 to 0.5.2). Uninstall the previous version from the venv first, and replace /opt/ttp/ttp instead of copying over it. CI now installs the runtime twice into one venv. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: onyks-os <129986281+onyks-os@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Upgrading a source install from 0.5.1 to 0.5.2 with
sudo ./scripts/install.shfailed:install_locked.shinstalls the wheel withpython -m installer, which never overwrites. Soinstall.shonly works on a fresh/opt/ttp, and the failure can come after part of the new version has already been written.install_locked.sh:pip uninstall --yes transparent-tor-proxybeforeinstaller. When nothing is installed it is a no-op.install.sh:rm -rf /opt/ttp/ttpbefore copying, so modules removed by a release (e.g. the watchdog's old state machine) are not left behind.🤖 Generated with Claude Code